from itertools import count
from typing import List


class Solution:
    def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int:
        return len(list(filter(lambda x: startTime[x] <= queryTime <= endTime[x], range(len(startTime)))))


if __name__ == '__main__':
    startTime = [1, 2, 3]
    endTime = [3, 2, 7]
    queryTime = 4
    s = Solution()

    print(s.busyStudent(startTime, endTime, queryTime))
